class CreateAgents < ActiveRecord::Migration
  def self.up
    create_table :agents do |t|

      t.column :name, :string, :null => false
      t.column :department, :string
      t.column :phone, :string, :null => false
      t.column :mobile, :string
      t.column :email, :string
      t.column :birthdate, :date
      t.column :employee_id, :integer
    end
  end

  def self.down
    drop_table :agents
  end
end
